package com.hdsx.spring.demo.controller;

import com.hdsx.spring.demo.bean.Order;
import com.hdsx.spring.demo.service.OrderService;
import com.hdsx.spring.webservlet.annotation.Autowired;
import com.hdsx.spring.webservlet.annotation.Controller;
import com.hdsx.spring.webservlet.annotation.RequestMapping;

/**
 * @author 占贤银
 * time 2024/8/17 13:46
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
@Controller
@RequestMapping("order")
public class OrderController {

    @Autowired
    private OrderService service;

    @RequestMapping("getOrder")
    public Order getOrder() {
        return service.getOrder();
    }
}
